package com.zide.video.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zide.framework.config.mybatisplus.XianYingMapperPlus;
import com.zide.video.domain.po.Video;
import com.zide.video.domain.vo.search.VideoSearchVO;
import org.apache.ibatis.annotations.Mapper;
import com.zide.common.core.domain.PageResult;

/**
 * 视频信息Mapper接口
 * 
 * @author zide
 * @date 2024-05-08
 */
@Mapper
public interface VideoMapper extends XianYingMapperPlus<Video> {

    default PageResult<Video> selectPage(VideoSearchVO searchVO) {
        return selectPage(searchVO, new LambdaQueryWrapper<Video>().orderByDesc(Video::getId));
    }
}
